package com.xjj.user.controller;

import com.xjj.user.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

/**
 * @author zhanghejie
 * @date 2020/7/20 15:56
 */
@RestController
@RefreshScope
public class StockController {

    @Autowired
    private StockService stockService;

    @GetMapping(value = "/reduce/{num}")
    public String reduce(@PathVariable(value = "num") Integer num) {
        return stockService.reduce(num);
    }
}
